package org.example.biconsumer;

import java.util.function.BiConsumer;

public class Java8BiConsumer3 {
    public static void main(String[] args) {
        math(1,1,(x,y) -> System.err.println(x + y));
        math(1,1,(x,y) -> System.err.println(x - y));
        math(1,1,(x,y) -> System.err.println(x * y));
        math(1,1,(x,y) -> System.err.println(x / 1));
    }

    static <T> void math(T a1, T a2, BiConsumer<T,T> func){
        func.accept(a1,a2);
    }
}
